<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-language" content="en" />
		<title><?php print $this->title; ?></title>
		<meta name="keywords" content="monster, truck, revelation, ministries, jesus, god, religion, monstertruck, lord, family, friends, fun, events" />
		<link rel="shortcut icon"  href="images/favicon.png" />
		<link rel="stylesheet" href="style.css" type="text/css" />
		<!--[if IE 8]> <link href="style-ie8.css" rel="stylesheet" type="text/css"> <![endif]-->
		<?php
			if(count($this->css) > 0) {
				print "<style type=\"text/css\">\n";
				foreach($this->css as $css) {
					print $css."\n";
				}
				print "</style>\n";
			}
			
			if(count($this->js) > 0) {
				foreach($this->js as $js) {
					print "<script type=\"text/javascript\">\n";
					print $js."\n";
					print "</script>\n";
				}
			}
		?>
	</head>
	
	<body>
		<!-- BEGIN HEADER -->
        <div id="header">
            <div id="topBar">
            	<!-- Begin Rapid Links -->
                <div class="fullCenter">
                    <ul id="rapidLinks">
                        <li><a href="siteMap.php">Site Map</a></li>
                        <li><a href="faq.php">FAQ</a></li>
                        <li><a href="contactUs.php">Contact Us</a></li>
                    </ul>
                </div>
                <!-- End Rapid Links -->
                <div class="clear"></div>
            </div>

            <!-- Logo -->
            <div id="logo" class="fullCenter">
                <a href="http://www.revelationmonstertruck.org/" title="Home Site">
                    <img src="images/banner.png" alt="Home Site" />
                </a>
            </div>

            <div class="fullCenter" >
                <div id="mainMenu">
                	<!-- Begin Menu Bar -->   
					<?php
						if(count($this->tabs) > 0) {
							print '<ul class="tabs menu">';
							foreach($this->tabs as $k => $tab) {
								// Determine the selected and deselected tabs
								$class = ($this->selectedTab == $k) ? "selectedTab" : "deselectedTab";
								// Create tabs
								print '<li><a class="'.$class.'" href="'.$tab[1].'">';
								print $tab[0];
								print '<span class="corner_std_top_left"></span>';
								print '<span class="corner_std_top_right"></span></a></li>';
							}
							print '</ul>';
						}
					?>
                    <!-- End Menu Bar -->
                    
                    <div class="clear"></div>

                    <!-- Begin Submenus -->
                    <div class="subMenu">
                        <?php
							if(count($this->subMenus) > 0) {
								foreach($this->subMenus as $k => $sub) {
									if($k == 0){
										$marg = "margin-left: 5px;";
									}else{
										$marg = "margin-left: 20px;";
									}
									print "<a href=\"{$sub[1]}\" class=\"subMenu\" style=\"{$marg}".($this->selectedSub == $k ? " color: yellow;" : "")."\">{$sub[0]}</a>";
								}
							}else {
								print "&nbsp;";
							}
						?>
                    </div>
                    <!-- End Submenus -->
                    
                </div>

                <!-- Menu path -->
                <div id="breadcrumbs">
                	<?php
                		print $this->info;
                	?>
                </div>
            </div>
        </div>
        <!-- END HEADER -->	

		<!-- BEGIN BODY -->
        <div id="body" class="fullCenter">
            <div id="mainContent">     
            	<!-- Calendar -->
                <?php
					if($this->showCal == true) {
						print '<div id="calendar">';
						$event = new Event("", $this->database);
						$events = $event->listEvents();
						if(is_array($events)) {
							print $events['Error'];
						}else {
							print $events;
						}
						print '</div>';
						print "<div id=\"description\" style=\"width: 74%\">";
					}else {
						print "<div id=\"description\" style=\"width: 100%\">";
					}
				?>